package com.chenyue.cm.user.service.impl;


import com.chenyue.cm.base.dao.LcBaseMapper;
import com.chenyue.cm.base.service.BaseServiceImpl;
import com.chenyue.cm.user.dao.JdLabelSendMapper;
import com.chenyue.cm.user.domain.JdLabelSend;
import com.chenyue.cm.user.service.JdLabelSendService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;


/**
 * @author chenyue-cm
 */
@Service(value = "JdLabelSendService")
public class JdLabelSendServiceImpl extends BaseServiceImpl<JdLabelSend> implements JdLabelSendService {

    private final JdLabelSendMapper jdLabelSendMapper;

    public JdLabelSendServiceImpl(@Qualifier("jdLabelSendMapper") JdLabelSendMapper jdLabelSendMapper) {
        this.jdLabelSendMapper = jdLabelSendMapper;
    }

    @Override
    @Resource(name = "jdLabelSendMapper")
    public void setBaseMapper(LcBaseMapper<JdLabelSend, Serializable> baseMapper) {
        this.baseMapper = baseMapper;
    }

    /**
     * 删除标签
     *
     * @param id 主键
     */
    @Override
    public void delete(Integer id) {
        jdLabelSendMapper.deleteById(id);
    }
}
